<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>index</title>
    <script type="text/javascript">
        function text() {
            var js = 1;
            var gj = 1;
            var mj = 1;
            var xj = 1;

            for (gj; gj <= 20; gj++) {
                if (mj >= 35) {
                    mj = 1;
                }
                for (mj; mj <= 34; mj++) {
                    if (xj >= 301) {
                        xj = 1;
                    }
                    for (xj; xj <= 300; xj++) {
                        if (((gj + mj + xj) == 100) && ((gj * 5 + mj * 3 + xj / 3) == 100)) {

                            console.log("公鸡" + gj + "只")
                            console.log("公鸡" + mj + "只")
                            console.log("公鸡" + xj + "只")
                        }

                    }
                    js++;


                }

            }
            console.log("数了" + js + "次")

        }
        text();
    </script>
</head>

<body>

</body>

</html>